<!DOCTYPE html>

<html>

<head>

    <title>纯css实现左右滑动</title>

    <style type="text/css">
        .main{
            display: flex;
            justify-content: space-around;
            height: 500px;
            overflow: hidden;
        }
        ul,li{
                
            list-style: none;;

        }

        .slide-box{

            margin-top:200px;
            overflow: hidden;
            /* display: -webkit-box; */
            box-orient: vertical;
            overflow-y: auto;
            overflow: scroll; 
            /*适应苹果*/

            -webkit-overflow-scrolling:touch;

        }

        .slide-item{

            width: 300px;

            height: 300px;

            border:1px solid #ccc;

            margin: 30px;

            background: pink;

        }

        /*隐藏掉滚动条*/

        .slide-box::-webkit-scrollbar {

            display:block;

        }

    </style>

</head>

<body>
    
    <div class="main">
        <div class="left">
            <ul class="slide-box">

                <li class="slide-item"></li>
            
                <li class="slide-item"></li>
            
                <li class="slide-item"></li>
            
                <li class="slide-item"></li>
            
                <li class="slide-item"></li>
            
            </ul>
        </div>
        <div class="right">
            <li class="slide-item"></li>
            
            <li class="slide-item"></li>
        
            <li class="slide-item"></li>
        
            <li class="slide-item"></li>
        
            <li class="slide-item"></li>
        
        </div>
    </div>

</body>

</html>